﻿/*----------------------------------------------------------------
//  <copyright file="IMicroCloudUserAuthenticationTokenStore.cs" company="MicroCloud@151504200868">
//      Copyright © 2020-2024 MicroCloud Corporation, All rights reserved.
//  </copyright>
//  <site>https://gitee.com/chenmm123/microclouds</site>
//  <last-editor>cmm</last-editor>
//  <last-date>2022-11-15 14:57</last-date>
//----------------------------------------------------------------*/

namespace MicroCloud.Identity
{
    #region "自定义UserAuthenticationTokenStore"
    /// <summary>
    /// 自定义UserAuthenticationTokenStore
    /// </summary>
    /// <typeparam name="TUser"></typeparam>
    public interface IMicroCloudUserAuthenticationTokenStore<TUser> : IUserAuthenticationTokenStore<TUser>
        where TUser : class
    {
        #region "方法"
        #region "获取某个用户的所有指定登录提供者的权限标识"
        /// <summary>
        /// 获取某个用户的所有指定登录提供者的权限标识
        /// </summary>
        /// <param name="user">用户信息</param>
        /// <param name="loginProvider">登录提供者</param>
        /// <param name="cancellationToken">任务取消标识</param>
        /// <returns>权限标识集合</returns>
        Task<string[]> GetTokensAsync(TUser user, string loginProvider, CancellationToken cancellationToken);
        #endregion

        #endregion

    }
    #endregion

}
